export class LocalstorageDao {
    get(key) {
        let r = localStorage.getItem(key);
        if (r) return JSON.parse(r);
        return null;
    }

    set(key, value) {
        localStorage.setItem(key, JSON.stringify(value));
    }

}


export const localstorageDao = new LocalstorageDao();